#include "Logger.hpp"
#include "UpSever.hpp"
#include <memory>

using namespace LogMudule;


int main(int argc,char* argv[])
{
    if (argc != 2)
    {
        LOG(LogLevel::FATAL) << argv[0] << "severport";
        Die(USAGE_ERR);
    }

    // std::string ip = argv[1];
     uint16_t port = std::stoi(argv[1]);

    std::unique_ptr<UpSever> sev_ptr = std::make_unique<UpSever>(port);
    sev_ptr->SeverInit();
    sev_ptr->Start();
   
    return 0;
}